package net.wanho.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

/**
 * 配置类
 */
@Configuration
public class SpringConfig {

    /**
     * 向容器中添加一个bean组件
     */
    @Bean
    public Date date(){
        return new Date();
    }

}
